Publish AI Agent to Marketplace
Used to publish an existing AI agent to the marketplace, making it available for others to discover and use.
API Endpoint
| Property | Value |
|---|---|
| Request Method | GET |
| Request URL | https://api.seliseblocks.com/agents/publish-agents/{agent_id} |
Request
Request Example
curl -X GET 'https://api.seliseblocks.com/agents/publish-agents/a1b2c3d4-e5f6-7890-abcd-ef1234567890?project_key=YOUR_PROJECT_KEY' \
-H 'accept: application/json'
Request Headers
| Field | Type | Required | Description |
|---|---|---|---|
| accept | string | Yes | Accepted response format. Use application/json |
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| agent_id | string | Yes | UUID of the AI Agent to publish. |
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| project_key | string | No | Project key used to change context. |
note
Publishing an agent to the marketplace makes it publicly discoverable. Ensure your agent is properly configured and tested before publishing.
Response
Success Response (200 OK)
Returns an object containing the publish status.
{
"is_success": true,
"item_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"detail": "Agent published to marketplace successfully",
"error": {}
}
Response Fields
| Field | Type | Description |
|---|---|---|
| is_success | boolean | Indicates whether the publish operation was successful. |
| item_id | string | Unique identifier of the published agent. |
| detail | string | Success or failure message with additional context. |
| error | object | Error details if the operation failed (empty if successful). |
Error Response (422 Unprocessable Entity)
Returns validation error details when the request parameters are invalid.
{
"detail": [
{
"loc": [
"path",
"agent_id"
],
"msg": "invalid UUID format",
"type": "type_error.uuid"
}
]
}
Error Response Fields
| Field | Type | Description |
|---|---|---|
| detail | array | Array of validation error objects. |
| loc | array | Location of the error in the request (e.g., path, query). |
| msg | string | Human-readable error message. |
| type | string | Error type identifier. |
Error Codes
| Status Code | Description | Response Type |
|---|---|---|
| 200 | Successful Response | Success |
| 404 | Agent Not Found | Not Found |
| 422 | Validation Error - Invalid request parameters | Unprocessable Entity |